using BackData;
using Domain.DTOs.BOMs;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace Team.API.Applocation.Command.BOM
{
    /// <summary>
    /// 停用成品BOM命令
    /// </summary>
    public class DisableProductBOMCommand : IRequest<APIResult<BOMDTO>>
    {
        /// <summary>
        /// BOM主键ID
        /// </summary>
        [Required(ErrorMessage = "BOM ID不能为空")]
        public long Id { get; set; }

        /// <summary>
        /// 是否停用（true-停用，false-启用）
        /// </summary>
        public bool IsDisable { get; set; } = true;

        /// <summary>
        /// 当前登录人姓名（用于记录操作日志）
        /// </summary>
        public string? CurrentUserName { get; set; }
    }
}

